<?php

namespace Common\Model;

use Think\Model;

class YzmLogModel extends Model {

    public $_validate = array(
        array('id', 'require', '验证码ID不能为空', self::MUST_VALIDATE, '', self::MODEL_UPDATE),
        array('code', 'require', '验证码不能为空', self::MUST_VALIDATE),
        array('num', 'require', '发送次数不能为空', self::MUST_VALIDATE),
        array('phone', 'require', '账号码不能为空', self::MUST_VALIDATE),
    );
    public $_auto = array(
        array('create_time', 'format_time', self::MODEL_INSERT, 'function')
    );

}
